package com.security.event;

import org.springframework.boot.autoconfigure.jdbc.DataSourceProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author 大忽悠
 * @create 2022/12/22 19:59
 */
@Configuration
public class DomainEventConfiguration {
   @Bean
   public UserDomainEventPublisher userDomainEventPublisher(DataSourceProperties dataSourceProperties){
      return new UserDomainEventPublisher(dataSourceProperties);
   }
}
